home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
prog
/
cfuncs.zip
/
IDLECHAR.C
< prev
next >
Wrap
Text File
|
1991-07-08
|
820b
|
28 lines
#include <conio.h>
#include <funcs.h>
void (*idle_func)(void) = ShowClock;
/*-------------------- Get Idle Char ---------------------------*/
/* */
/* Description: Runs a functions until a key is pressed. */
/* */
/* Input: A void function that takes nothing as input. */
/* */
/* Output: The key pressed. */
/* */
/*--------------------------------------------------------------*/
char GetIdleCh ( void )
{
while (!kbhit() )
idle_func();
return(getch());
}
void nothing(void)
{
};